package com.esyoga.yoyoga.service;

import com.esyoga.yoyoga.pojo.DTO.ContractDTO;
import com.esyoga.yoyoga.pojo.TContract;

import java.util.List;
import java.util.Map;

public interface ContractService {

    /**
     * 查找学学员某状态的合约
     * @param sId
     * @param cState
     * @return
     */
    List<TContract> selectContractBySidAndCstate(Integer sId, int cState);

    /**
     * 查找教练的某状态的合约
     * @param tId
     * @param cState
     * @return
     */
    List<TContract> selectContractByTidAndCstate(Integer tId, int cState);

    /**
     * 查询合同信息
     * @param contractList
     * @return
     */
    List<ContractDTO> selectContractDTO(List<TContract> contractList);

    int insertContract(TContract tContract);

    int updateContract(TContract tContract);

    Map<String, Object> createContract(TContract tContract);

    TContract selectByCId(Integer cId);

    List<TContract> selectBysIdAndGIdAndTIdAndState(Integer sId, Integer gId, Integer tId, List<Integer> stateList);
}
